<!-- 成员授权编辑页面 -->
<extend name="Public/baseConf" />
<block name="style"></block>

<block name="breadcrumb"> 
	<div class="row wrapper border-bottom white-bg page-heading">
	    <div class="col-lg-4">
	        <h2>访问授权</h2>
	        <ol class="breadcrumb">
	            <li><a href="{:U('index/index')}">首页</a></li>
	            <li><a href="{:U('AuthManager/index')}">授权管理</a></li>
	            <li class="active">
	                <strong>访问授权</strong>
	            </li>
	        </ol>
	    </div>
	    <div class="col-lg-7">
    		<div class="title-action">
           	<select name="group" class="form-control">
				<volist name="auth_group" id="vo">
					<option value="{:U('AuthManager/user',array('group_id'=>$vo['id'],'group_name'=>$vo['title']))}" <eq name="vo['id']" value="$this_group['id']">selected</eq> >{$vo.title}</option>
				</volist>
			</select></div>
	    </div>
	    <div class="col-lg-1">
            <div class="title-action">
	            <a class="btn btn-warning" type="submit" href="{:U('index')}"><i class="fa fa-reply"></i>返回</a>
            </div>
        </div>
	</div> 
</block>
<block name="body">
	<div class="tabs-container">
	    <ul class="nav nav-tabs">
	        <li><a href="{:U('AuthManager/access',array('group_name'=>I('group_name') ,'group_id'=> I('group_id')))}"><i class="blue fa  fa-folder-open  bigger-110"></i>访问授权</a></li>
	        <li><a href="{:U('AuthManager/category',array('group_name'=>I('group_name') ,'group_id'=> I('group_id')))}"><i class="blue fa fa-barcode  bigger-110"></i>分类授权</a></li>
			<li class="active" ><a href="javascript:;"><i class="blue fa fa-user  bigger-110"></i>成员授权</a></li> 
	    </ul>
	    <!-- 数据列表 -->
	    <div class="tab-content">
	      	<div id="tab-2" class="tab-pane active">
			 	<div class="panel-body">
				    <div class="table-responsive">
				    
						<form class="ids">
			                 <table class="table table-striped table-bordered table-hover dataTables-example" >
			                  <thead>
			                  <tr>
								<th class="center">UID</th>
								<th class="center">昵称</th>
								<th class="center">最后登录时间</th>
								<th class="center">最后登录IP</th>
								<th class="center">状态</th>
								<th class="center">操作</th> 
			                  </tr>
			                  </thead>
			                  <tbody>
									<volist name="_list" id="vo">
									<tr>
										<td class="center">{$vo.uid} </td>
										<td class="center">{$vo.nickname}</td>
										<td class="center"><span>{$vo.last_login_time|time_format}</span></td>
										<td class="center"><span>{$vo.last_login_ip|long2ip}</span></td>
										<td class="center">{$vo.status_text}</td>
										<td class="center"><a href="{:U('AuthManager/removeFromGroup?uid='.$vo['uid'].'&group_id='.I('group_id'))}" class="ajax-get">解除授权</a>
										</td>
									</tr>
									</volist>
			                  </tbody>
			                 </table>
			           	</form>
			           	<div class="page pull-right">
				     		{$_page}
			 			</div>
					 	<div class="main-title">
							<form class="add-user" action="{:U('addToGroup')}" method="post" enctype="application/x-www-form-urlencoded" >
								<div class="col-xs-8"><input type="hidden" name="group_id" value="{:I('group_id')}"></div>
					            <div class="col-xs-3"><input class="form-control col-xs-2 pull-right" type="text" name="uid" placeholder="请输入uid,多个用英文逗号分隔"></div>
					            <div class="col-xs-1"><button type="submit" class="btn btn-primary ajax-post pull-right" target-form="add-user">
					            	<i class="fa fa-floppy-o"></i>新增
					            </button> </div>
							</form> 
						</div>
				    </div>
			    </div>
		    </div>
	    </div>
	</div>
</block>
<block name="script">
<script type="text/javascript" charset="utf-8">
	$('select[name=group]').change(function(){
		location.href = this.value;
	});
</script>
</block>
